package com.gz.service.impl;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.gz.pojo.Animal;
import com.gz.pojo.Cat;
import com.gz.service.CatService;

public class CatServiceImpl implements CatService{
	@Override
	public String processCatBusiness(HttpServletRequest request,Animal animal,Map<String, String> forwardMap) {
		String url="faile";
		Cat cat=(Cat)animal;
		if("cat".equals(cat.getName())){
			url="success";
		}
		return forwardMap.get(url);
	}
}
